Package com.netscape.cmscore.apps
Class CMS
java.lang.Object
com.netscape.cmscore.apps.CMS
This represents the CMS server. Plugins can access other
public objects such as subsystems via this inteface.
This object also include a set of utility functions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final int
static final int
static final int
static final org.slf4j.Logger
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PasswordStore
Construct a password store.static String
static String
static String
getLogMessage
(String msgID, Object... params) Retrieves log message from LogMessages.properties or audit-events.properties.static String
Return the product name from /usr/share/pki/CS_SERVER_VERSION which is provided by the server theme package.static String
static String
getUserMessage
(String msgID, String... params) Retrieves the localized user message from UserMessages.properties.static String
getUserMessage
(Locale locale, String msgID, String... params) Retrieves the localized user message from UserMessages.properties.static boolean
isSensitive
(String name) Check whether the string is contains password
-
Field Details
-
logger
public static final org.slf4j.Logger logger -
DEBUG_OBNOXIOUS
public static final int DEBUG_OBNOXIOUS- See Also:
-
DEBUG_VERBOSE
public static final int DEBUG_VERBOSE- See Also:
-
DEBUG_INFORM
public static final int DEBUG_INFORM- See Also:
-
CONFIG_FILE
- See Also:
-
PRE_OP_MODE
public static final int PRE_OP_MODE- See Also:
-
RUNNING_MODE
public static final int RUNNING_MODE- See Also:
-
-
Constructor Details
-
CMS
public CMS()
-
-
Method Details
-
getProductName
Return the product name from /usr/share/pki/CS_SERVER_VERSION which is provided by the server theme package.- Throws:
Exception
-
getProductVersion
-
getInstanceDir
-
getInstanceID
-
getUserMessage
Retrieves the localized user message from UserMessages.properties.- Parameters:
msgID
- message id defined in UserMessages.propertiesparams
- an array of parameters- Returns:
- localized user message
-
getUserMessage
Retrieves the localized user message from UserMessages.properties.- Parameters:
locale
- end-user localemsgID
- message id defined in UserMessages.propertiesparams
- an array of parameters- Returns:
- localized user message
-
getLogMessage
Retrieves log message from LogMessages.properties or audit-events.properties.- Parameters:
msgID
- message ID defined in LogMessages.properties or audit-events.propertiesparams
- string parameters- Returns:
- localized log message
-
isSensitive
Check whether the string is contains password- Parameters:
name
- key string- Returns:
- whether key is a password or not
-
createPasswordStore
Construct a password store. If the process was started by Nuxwdog return a NuxwdogPasswordStore. Otherwise the class name is read from the "passwordClass" key in the map, an instance is constructed, its init() method is called with the value of the "passwordFile" key in the map, and the instance is returned.- Throws:
Exception
-